package com.example.mapper;

import com.example.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
* @author luo20
* @description 针对表【user(用户表)】的数据库操作Mapper
* @createDate 2025-06-23 10:13:28
* @Entity com.example.entity.User
*/
public interface UserMapper extends BaseMapper<User> {
    /**
     * 用户登录
     * @param map
     * @return
     */
    @Select("select * from user where username = #{username} and password = #{password}")
    User login(Map<String, Object> map);
}




